let fn = (props) => {
  console.log(props.name)
}


let str = '-ab cdf'

console.log(str.replace(/-\w/g, match => match[0].toUpperCase()))


